const std = @import("std");
const mp = @import("mp.zig");

const ArenaAllocator = std.heap.ArenaAllocator;
const page_allocator = std.heap.page_allocator;

pub fn Commands(comptime ReaderType: type) type {
    return struct {
        pub fn exec(in: ReaderType) !void {
            var allocator = ArenaAllocator.init(page_allocator);
            defer allocator.deinit();

            var buf: [255]u8;
            const executable = try mp.decodeStringStatic(buf, in);
            const process = try std.ChildProcess.init([_][]u8{executable}, allocator);
        }
    }
}